package com.fh.controller;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;

import com.fh.model.Images;
import com.fh.service.ImagesService;
@Controller
public class IndexController {
	
	@Autowired
	private ImagesService imagesService;
	
	@RequestMapping("/index")
	public String index(ModelMap modelMap) {
		List<Images> list=imagesService.selectByAll();
		modelMap.put("list",list);
		return "index";
	}
}
